package com.czk.model.mediator;



/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/13 21:29
 */
// 同事抽象类
public abstract class Colleague {
    // 聚合抽象者接口
    private Mediator mediator;
    private String name;
    public Colleague(Mediator mediator,String name){
        this.mediator=mediator;
        this.name=name;
    }
    // 得到中介者
    public Mediator getMediator(){
        return this.mediator;
    }
    public abstract void sendMessage(int stateChange);
}
